﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

using RZD_maps.Modules.MapScale.ViewModels;
using GMap.NET;

namespace RZD_maps.Modules.MapScale.Views
{
    /// <summary>
    /// Логика взаимодействия для View.xaml
    /// </summary>
    public partial class View : UserControl
    {
        private ViewModel viewModel;

        public View()
        {
            InitializeComponent();
            MainMap.ShowCenter = false;
            MainMap.MouseWheelZoomType = MouseWheelZoomType.MousePositionWithoutCenter; //MouseWheelZoomType.MousePositionAndCenter;
            MainMap.Zoom = 12;

        }

        public View(ViewModel viewModel)
            : this()
        {
            this.viewModel = viewModel;
            viewModel.View = this;
        }
    }
}
